<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
<style>
.orderby {padding-left: 5px;line-height: 30px;}
.orderby li{float: left;margin: 0px 3px -1px 0px;padding: 2px 5px;}
.orderby a{padding: 2px;}
.orderby .hover{background-color: #F80;color: #FFF;}
.orderby a:hover {text-decoration: none;background-color: #F80;color: #FFF;}
</style>
<ul class="orderby">
<li><a <?php if($orderby=='days') { ?>class="hover" <?php } ?>href="plugin.php?id=dc_signin&amp;action=ranklist&amp;orderby=days">按总天数</a></li>
<li><a <?php if($orderby=='monthdays') { ?>class="hover" <?php } ?>href="plugin.php?id=dc_signin&amp;action=ranklist&amp;orderby=monthdays">按月天数</a></li>
<li><a <?php if($orderby=='credit') { ?>class="hover" <?php } ?>href="plugin.php?id=dc_signin&amp;action=ranklist&amp;orderby=credit">按总奖励</a></li>
</ul>
<table class="dt mtm" cellpadding="0" cellspacing="0">
<tbody><tr>
<th width="1%"></th>
<th width="20%">用户名</th>
<th width="15%">总天数</th>
<th width="15%">月天数</th>
<th width="19%">目前等级</th>
<th width="15%">总奖励[<?php echo $_G['setting']['extcredits'][$_G['cache']['plugin']['dc_signin']['extcredit']]['title'];?>]</th>
<th width="15%">上次奖励</th>
</tr><?php $i = 0;?><?php if(is_array($qdlists)) foreach($qdlists as $qd) { ?><tr<?php if($i%2==1) { ?> class="alt"<?php } ?>>
<td></td>
<td><a href="home.php?mod=space&amp;uid=<?php echo $qd['uid'];?>" target="_blank"><?php echo $qd['username'];?></a></td>
<td><?php echo $qd['days'];?></td>
<td><?php echo $qd['monthdays'];?></td>
<td><?php echo $qddj[$qd['sgid']]['grouptitle'];?></td>
<td><?php echo $qd['credit'];?></td>
<td><?php echo $qd['bcredit'];?></td>
</tr><?php $i++;?><?php } ?>
</tbody></table>
